import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //查询产品列表
  queryProuctList: (query) => api.get(`${config.interfaces.type5}portfolio-server/simulationProduct/query-all-product`, query),
  //获取某模拟组合详情
  queryDetailById: (query) => api.get(`${config.interfaces.type5}portfolio-server/simulationProduct/queryDetail`, query),
  //删除某个组合
  deleteById: (query) => api.post(`${config.interfaces.type5}portfolio-server/simulationProduct/delete`, query),
  //新建/编辑模拟组合
  addEditPortfolio: (query) => api.post(`${config.interfaces.type5}portfolio-server/simulationProduct/add`, query),
};
